package org.hsc.proxy;
/*
 * Commproj1_client.java
 *
 * Created on December 22, 2007
 *
 * Name:        Moty Michaely   |   Alon Halfon
 * ID:          043413087       |   300545969
 */

import java.io.*;
import java.net.*;

public class Commproj2_client {
    /*
     * the main entry point
     * usage: outputUsage function
     * 
     */
    public static void main(String[] args) throws FileNotFoundException, IOException, URISyntaxException, InterruptedException{
           try {
               URI inName=new URI(args[0]);
               URI outName=new URI(args[1]);
               ProxyServerManager manager=new ProxyServerManager(inName,outName,Integer.parseInt(args[2]));
               manager.start();
           }catch (Exception e){
               System.out.println("Error starting client:" + e.getMessage());
           }
           
    }
}
